<?php
//定义编辑器模板路径
config('form_view.editor', APP_PATH.'markdown/view/editor/index.tpl');
//定义编辑器解析函数
config('common.function_editor', 'markdownParse');
//扩展后台菜单
DcConfigMerge('admin_menu.system',[
    'editor'      => [
        'ico'     => 'fa fa-fw fa-file-text',
        'title'   => '编辑器',
        'target'  => '_blank',
        'controll'=> 'addon',
        'action'  => 'index',
        'url'     => DcUrlAdmin('markdown/index/index', '', ''),
    ],
]);
//前台配置
return [
    'markdown'=>[
        'theme'=>'default',
        'theme_wap'=>'default'
    ]
];